<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新建项目界面</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css" />
    <link href="/css/stream-v1.css" rel="stylesheet" type="text/css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/js/stream-v1.js"></script>
</head>

<body>
<div style="margin: 20% 20%" id="newpt">
    <div class="upload">
        <form id="form" class="form" action="UploadUserLogo" enctype="multipart/form-data"  method="post">
            <p style="font-size: 1.3em">项目名称<input id="pname" type="text" name="pname" style="margin-left: 15px"></p><br><br>
            <input id="file" class="file" name="file" multiple="" type="file"><span class="btn btn-info">请选择要上传的文件(小于1G)</span>
            <input id="submit" class="btn btn-primary" value="上传" type="submit">
        </form>
    </div>
    <div id="i_select_files" style="overflow: hidden; position: relative">
        <div>请选择文件</div>
    </div>

    <!-- ID为`i_stream_files_queue`，否则将要配置filesQueueId: "your_id" -->
    <div id="i_stream_files_queue">
    </div>

    <!-- （可选，不配置且不自定义响应函数将看不到一些信息）ID暂时必须为`i_stream_message_container` -->
    <div id="i_stream_message_container">
    </div>
</div>


<script type="text/javascript">
var config = {
multipleFiles: true, /*多个文件一起上传, 默认: false */
swfURL : "/swf/FlashUploader.swf", /* SWF文件的位置 */
tokenURL : "/tk", /*根据文件名、大小等信息获取Token的URI（用于生成断点续传、跨域的令牌） */
frmUploadURL : "/fd;", /*Flash上传的URI */
uploadURL : "/upload" /*HTML5上传的URI */
};
var _t = new Stream(config);
</script>
</body>
</html>